package com.insta.playdroid;

import java.util.List;

import android.content.Context;

import com.insta.playdroid.metier.domain.Song;

public class PlayerFactory {
	
	private static IPlayer service;
	
	private PlayerFactory(int position, List<Song>songs, Context context){
		service = new Player(position, songs, context);
	}
	
	public static IPlayer create(int position, List<Song>songs, Context context) {
		if(service == null){
			new PlayerFactory(position, songs, context);
		}
		
		return service;

	}
	
	public static IPlayer getPlayer(){
		return service;
	}

}
